<script type=\"text/javascript\">

			  var _gaq = _gaq || [];
			  _gaq.push(['_setAccount', 'UA-7309189-3']);
			  _gaq.push(['_setDomainName', '.xivpads.com']);
			  _gaq.push(['_trackPageview']);

			  (function() {
				var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
				ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
				var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
			  })();

			</script>
<?

//Show($DB->GetData('ffxivc_specs', "*", true, null, "specId", "ASC"));
//Show($Session->Character);
//Save $Session informations
$CICUID =  $Session->GetCharacter('id');
$AVATAR =  str_replace(" ", "", $Session->GetCharacter('avatar'));
$THEME =  $Theme;

echo "<script>
		var CICUID = '".$CICUID."';
		var THEME = '".$THEME."';
		var AVATAR = '".$AVATAR."';
		</script>";



$version = "?version=1.3";
$version = "?".time();


if($Theme=="light"){
	$white = true;
}else{
	$white = false;
}
//Show($Theme);


if($white){
	echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"specs/js/srating/jquery.ui.stars.white.css?v=3.0.0b38\"/>
		<link href=\"specs/css/main_white.css".$version."\" rel=\"stylesheet\" type=\"text/css\">";				
}else{

	echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"specs/js/srating/jquery.ui.stars.css.gz?v=3.0.0b38\"/>
		<link href=\"specs/css/main.css.gz".$version."\" rel=\"stylesheet\" type=\"text/css\">";
}
?>

<!-- STAR RATING WIDGET -->
<script type="text/javascript" src="specs/js/srating/jquery.ui.stars.js?v=3.0.0b38"></script>
<!-- CUSTOM -->
<script type="text/javascript" src="specs/js/main.js<? echo $version; ?>"></script>
<script type="text/javascript" src='specs/js/spec.js<? echo $version; ?>'></script>
<div class="specs" style='margin-top: 10px;'>
	<div class="left"  style="width: 767px;">
		<div  class="widget">
			<div  class="header white" style="height: 10px;">
				<div class="active fl-left" style="margin-top: -1px;"><a class="menu-item cur-point menu-item-selected" ><strong>Browse</strong></a><span id="split"></span><a  class="menu-item cur-point"><strong>Create</strong></a><span id="split"></span><a class="menu-item cur-point"><strong>Import</strong></a><span id="split"></span><a class="menu-item cur-point"><strong>1.20</strong><span id="split"></span><a style="opacity:0;" class="menu-item cur-point"><strong>friend-graph</strong></a></div>
			</div>
			<div id="left-content-container" class="contents" style="min-height: 765px;">
			</div>
		</div>
	</div>
	<div class="right" style="width: 223px;">
		<div id="info-specs" class="widget" style="display:none;">
			<div  class="header lightblue" style="height: 10px;"><a style="color:white;" onclick="Toggle('info-specs-container')">Spec information</a></div>
			<div id="info-specs-container" class="contents"> 
			</div>
		</div>
		<div id="info-specs-spacer" class="spacer" style="display:none;"></div>
		<div id="own-specs" class="widget" style="display:none;">
			<div  class="header darkblack" style="height: 10px;	"><a style="color:white;" onclick="Toggle('own-specs-container')">Own specs</a></div>
			<div id="own-specs-container" class="contents"> 
			</div>
		</div>
		<div id="own-specs-spacer" class="spacer" style="display:none;"></div>
		<div class="widget">
			<div  class="header orange" style="height: 10px;"><a style="color:white;" onclick="Toggle('hot-specs-container')">Hottest specs</a></div>
			<div id="hot-specs-container" class="contents"> 
			</div>
		</div>
		
	</div>
	<div class="clear:both;"></div>
</div>

<?
	echo "<script>
			loadHotSpecs();";
if($CICUID != ""){
	echo "	loadOwnSpecs()";
			
}
	echo "</script>";
?>